﻿using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using DxMvcApplication.SecurityServiceReference;

namespace DxMvcApplication.Areas.Administrator.Models
{
    public class PermissionInSiteModel
    {
        /// <summary>
        /// Gets or sets the permission identifier.
        /// </summary>
        /// <value>
        /// The permission identifier.
        /// </value>        
        [Required(ErrorMessageResourceType = typeof(NmResources.MessageResource),ErrorMessageResourceName = "Required")]
        public int PermissionId { get; set; }

        /// <summary>
        /// Gets or sets the site identifier.
        /// </summary>
        /// <value>
        /// The site identifier.
        /// </value>
        [Required(ErrorMessageResourceType = typeof(NmResources.MessageResource), ErrorMessageResourceName = "Required")]
        public int SiteId { get; set; }

        /// <summary>
        /// Gets or sets the permission.
        /// </summary>
        /// <value>
        /// The permission.
        /// </value>
        public string Permission { get; set; }

        /// <summary>
        /// Gets or sets the site.
        /// </summary>
        /// <value>
        /// The site.
        /// </value>
        public List<SiteDto> Site { get; set; }
    }
}